package com.allwees.bs.module.oms.constant;

import com.allwees.bs.core.model.order.wf.order.EOrderState;
import lombok.Getter;

/**
 * 查询类型
 */
@Getter
public enum EOrderQueryType {

    ALL(EOrderState.CREATED,
            EOrderState.WAIT_SHIP,
            EOrderState.SHIPPED,
            EOrderState.RECEIVED,
//            EOrderState.WAIT_SETTLE,
//            EOrderState.SETTLED,
            EOrderState.CANCELED,
            EOrderState.CLOSED,
            EOrderState.COMPLETED),

    WAIT_PAY(EOrderState.CREATED),

    WAIT_SHIP(EOrderState.WAIT_SHIP),

    WAIT_RECEIVE(EOrderState.SHIPPED),

    REFUNDING(EOrderState.RECEIVED),

    COMPLETED(EOrderState.RECEIVED,
//            EOrderState.WAIT_SETTLE,
//            EOrderState.SETTLED,
            EOrderState.COMPLETED),

    CANCELED(EOrderState.CANCELED),

    CLOSED(EOrderState.CLOSED),
    ;

    private EOrderState[] states;

    EOrderQueryType(EOrderState... states) {
        this.states = states;
    }

    public EOrderState[] getStates() {
        return states;
    }
}
